package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Employee {

    public static final int STATE_NORMAL = 0;

    public static final int STATE_LOCK = 1;

    private Long id;

    private String username;

    private String realName;

    private String password;

    private String tel;

    private String email;

    private Dept dept;
     //图片弹出
    private String imagePath;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inputTime;

    private int state = STATE_NORMAL;

    private boolean admin = false;

    private List<Role> roles = new ArrayList<Role>();

}